<!--在线下单-->
<div class="customer-04 div2">
    <form id="FrmXiadan" name="info_form" action="{:U('Home/Action/apply')}" method="post" style="margin-left: -345px; margin-top: -270px; width: 690px; height: 540px;">
        <h3>在线申请</h3>
        <div class="a2 clearfix">
            <label><i>*</i>您的姓名：</label>
            <input class="FrmXiadan_input" type="text" name="name">
        </div>
        <div class="a3 clearfix">
            <label><i>*</i>联系电话：</label>
            <input class="FrmXiadan_input" type="text" name="mobile">
        </div>
        <div class="a4 clearfix">
            <label><i>*</i>所在地：</label>
            <select class="bp_f_select" name="city">
                <option value="">所在城市</option>
                <foreach name="customer_apply_city" item="val">
                    <option value="{$val}">{$val}</option>
                </foreach>
            </select>
        </div>
        <div class="a3 clearfix">
            <label><i>*</i>需求金额：</label>
            <input class="FrmXiadan_input" type="text" name="money"> <span style="line-height: 30px; margin-left: 10px; font-size: 15px;">万</span>
        </div>
        <div class="a3 clearfix">
            <label><i>*</i>验证码：</label>
            <input class="FrmXiadan_input" name="code" type="text" maxlength="4" placeholder="验证码">
            <img id="shenqing_code2" src="{:U('Home/Action/make_code')}" style="width: 160px;height: 28px; margin-left: 5px;" onclick="RefreshCode('shenqing_code2')">
        </div>
        <div class="a6">
            <input type="submit" value="提交" class="b1">
            <input type="button" value="取消" class="b2" onclick="$(&#39;div.customer-04.div2&#39;).fadeOut();">
        </div>
    </form>
</div>
<script>
    $('#FrmXiadan').ajaxForm({success:complate_FrmXiadan,dataType:'json'});
    function complate_FrmXiadan(result){
        if(result.errNum === 0){
            $('#FrmXiadan').find('.FrmXiadan_input').val('');
            $('.customer-04').fadeOut();
            layer.msg(result.retData, 2, 1);
            RefreshCode('shenqing_code2')
        } else {
            layer.msg(result.errMsg);
            RefreshCode('shenqing_code2')
        }
    }
</script>

<!--投诉建议-->
<div class="customer-04 div1">
    <form id="msgFrm" name="info_form" action="{:U('Home/Action/suggest')}" method="post">
        <h3>投诉 / 建议</h3>
        <div class="a1">
            <font><input class="gb" type="radio" name="type" value="投诉">投诉 </font>
            <font><input class="gb" type="radio" name="type" value="建议" checked="">建议</font>
        </div>
        <div class="a2 clearfix">
            <label><i>*</i>您的姓名：</label>
            <input type="text" name="user_name" class="msgFrm_input">
        </div>
        <div class="a3 clearfix">
            <label><i>*</i>联系电话：</label>
            <input type="text" name="mobile" class="msgFrm_input">
        </div>
        <div class="a4 clearfix">
            <label><i>*</i>所在城市：</label>
            <select class="bp_f_select" name="city">
                <option value="">所在城市</option>
                <foreach name="customer_apply_city" item="val">
                    <option value="{$val}">{$val}</option>
                </foreach>
            </select>
        </div>
        <div class="a3 clearfix">
            <label><i>*</i>详细地址：</label>
            <input type="text" style="width: 530px;" name="address" class="msgFrm_input">
        </div>
        <h4>请填写真实地址，不需要重复填写所在地区</h4>
        <div class="a5 clearfix">
            <label><i>*</i>投诉/建议内容：</label>
            <textarea name="content" class="msgFrm_input"></textarea>
        </div>
        <div class="a3 clearfix">
            <label><i>*</i>验证码：</label>
            <input type="text" maxlength="4" placeholder="验证码" name="code" class="msgFrm_input">
            <img id="shenqing_code3" src="{:U('Home/Action/make_code')}" style="width: 160px;height: 28px; margin-left: 5px;" onclick="RefreshCode('shenqing_code3')">
        </div>
        <div class="a6">
            <input type="submit" value="提交" class="b1">
            <input type="button" value="取消" class="b2" onclick="$(&#39;div.customer-04.div1&#39;).fadeOut();">
        </div>
    </form>
</div>
<script>
    $('#msgFrm').ajaxForm({success:complate_msgFrm,dataType:'json'});
    function complate_msgFrm(result){
        if(result.errNum === 0){
            $('#msgFrm').find('.msgFrm_input').val('');
            $('.customer-04').fadeOut();
            layer.msg(result.retData, 2, 1);
            RefreshCode('shenqing_code3')
        } else {
            layer.msg(result.errMsg);
            RefreshCode('shenqing_code3')
        }
    }
</script>